import request from "@/util/request";

export function getPraiseCount(params: any) {
    return request({
        url: import.meta.env.VITE_WEB_API + '/praise/getPraiseCount',
        method: 'post',
        data: params
    })
}

export function addPraise(params: any) {
    return request({
        url: import.meta.env.VITE_WEB_API + '/praise/praise',
        method: 'post',
        data: params
    })
}

export function cancelPraise(params: any) {
    return request({
        url: import.meta.env.VITE_WEB_API + '/praise/cancelPraise',
        method: 'post',
        data: params
    })
}

export function addTread(params: any) {
    return request({
        url: import.meta.env.VITE_WEB_API + '/praise/tread',
        method: 'post',
        data: params
    })
}

export function cancelTread(params: any) {
    return request({
        url: import.meta.env.VITE_WEB_API + '/praise/cancelTread',
        method: 'post',
        data: params
    })
}

export function getPraiseUserList(params: any) {
    return request({
        url: import.meta.env.VITE_WEB_API + '/praise/getPraiseUserList',
        method: 'post',
        data: params
    })
}
